package com.huwaiwai.disruptor.demo03;

import com.lmax.disruptor.WorkHandler;

/**
 * Created by huweiwei on 2017/5/15.
 */
public class Demo03Consumer implements WorkHandler<PCData> {
    @Override
    public void onEvent(PCData pcData) throws Exception {
        System.out.println(Thread.currentThread().getId() + ":Event: --" + pcData.getValue() * pcData.getValue() + "--");
    }
}
